﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Web.Services;
using System.ServiceModel.Web;
using Sukul.SharePoint.Taxomatic.DTO;

namespace Sukul.SharePoint.Taxomatic.Service
{

    [ServiceContract(Namespace = "Sukul_SharePoint_Taxomatic")]
    public interface ITaxomaticService
    {
        [OperationContract]
        [WebMethod]
        //[WebInvoke(Method="POST", RequestFormat=WebMessageFormat.Json, ResponseFormat=WebMessageFormat.Json)]
        [WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
        string GetTerms(string request);

        [OperationContract]
        [WebMethod]
        [WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
        string GetSingleTerm(string request);

        [OperationContract]
        [WebMethod]
        [WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
        string GetVersion();

        [OperationContract]
        [WebMethod]
        [WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
        string SyncHiddenList();

        [OperationContract]
        [WebMethod]
        [WebGet(ResponseFormat=WebMessageFormat.Json, RequestFormat=WebMessageFormat.Json)]
        string Test();
    }
}
